﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Game_Engine
{
    public class Light : Component
    {
        private Color ambientColor, diffuseColor, specularColor;
        private float intensity; //Other properties will have to be left up to 
                                    //specialized light types: point, spot, directional
                                                //              Radius, Distance - Diameter, Orientation for all.
        public Light(Color color, float i)             //         Will need Light Distance calculation in shader also
        {                                                       //      1/(a + bd + cd^2)
            Intensity = i;
            Ambient = color;
            Diffuse = color;
            Specular = color;
            Name = "Light";
        }

        public float Intensity
        {
            get { return intensity; }
            set { intensity = value; }
        }

        public Color Ambient
        {
            get { return ambientColor; }
            set { ambientColor = value; }
        }

        public Color Diffuse
        {
            get {return diffuseColor;}
            set { diffuseColor = value; }
        }

        public Color Specular
        {
            get {return specularColor;}
            set { specularColor = value; }
        }
        
    }
}
